<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"  %>
<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>后台登录-X-admin1.1</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="backstageCSSandJS/css/font.css">
	<link rel="stylesheet" href="backstageCSSandJS/css/xadmin.css">
    <link rel="stylesheet" href="https://cdn.bootcss.com/Swiper/3.4.2/css/swiper.min.css">
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript" src="https://cdn.bootcss.com/Swiper/3.4.2/js/swiper.jquery.min.js"></script>
    <script src="backstageCSSandJS/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="backstageCSSandJS/js/xadmin.js"></script>

</head>
<body>
    <!-- 中部开始 -->
    <div class="wrapper">
        <!-- 右侧主体开始 -->
        <div class="page-content">
          <div class="content">
            <!-- 右侧内容框架，更改从这里开始 -->
            <form class="layui-form" action="ns.do?op1=useradd" method="post">
 					<!-- 员工姓名 -->
 					<div class="layui-form-item">
                    <label for="L_username" class="layui-form-label">
                        <span class="x-red">*</span>员工姓名
                    </label>
                    <div class="layui-input-inline">
                        <input type="text" id="L_username" name="username" required="" lay-verify="nikename"
                        autocomplete="off" class="layui-input" >
                    </div>

               		 </div>	
               		 <!-- 员工性别 -->
               		 <div class="layui-form-item">
                    <label for="L_username" class="layui-form-label">
                        <span class="x-red">*</span>员工性别
                    </label> 
                     	<input type="radio" name="sex" value="男" title="男" checked="">
      					<input type="radio" name="sex" value="女" title="女">
               		 </div>	
               		 <!-- 员工手机 -->
					<div class="layui-form-item">
                    <label for="L_username" class="layui-form-label">
                        <span class="x-red">*</span>员工手机
                    </label>
                    <div class="layui-input-inline">
                        <input type="text" id="L_username" name="userphone" required="" lay-verify="nikename"
                        autocomplete="off" class="layui-input" >
                    </div>
               		 </div>	
               		  <!-- 员工密码 -->
					<div class="layui-form-item">
                    <label for="L_username" class="layui-form-label">
                        <span class="x-red">*</span>员工密码
                    </label>
                    <div class="layui-input-inline">
                        <input type="text" id="L_username" name="userPwd" required="" lay-verify="nikename"
                        autocomplete="off" class="layui-input" >
                    </div>
               		 </div>	
               		 <!-- 员工邮箱 -->
               		 <div class="layui-form-item">
                    <label for="L_username" class="layui-form-label">
                        <span class="x-red">*</span>员工邮箱
                    </label>
                    <div class="layui-input-inline">
                        <input type="text" id="L_username" name="userEmail" required="" lay-verify="nikename"
                        autocomplete="off" class="layui-input" >
                    </div>
               		 </div>	
               		 <!-- 员工地址 -->
               		 <div class="layui-form-item">
                    <label for="L_username" class="layui-form-label">
                        <span class="x-red">*</span>员工地址
                    </label>
                    <div class="layui-input-inline">
                        <input type="text" id="L_username" name="userAddress" required="" lay-verify="nikename"
                        autocomplete="off" class="layui-input" >
                    </div>
               		 </div>	
               		 <!-- 员工身份证 -->
               		 <div class="layui-form-item">
                    <label for="L_username" class="layui-form-label">
                        <span class="x-red">*</span>员工身份证
                    </label>
                    <div class="layui-input-inline">
                        <input type="text" id="L_username" name="userCardId" required="" lay-verify="nikename"
                        autocomplete="off" class="layui-input">
                    </div>
               		 </div>
               		 <label for="L_username" class="layui-form-label">
                        <span class="x-red">*</span>所属部门
                    </label>
               		  <div class="layui-input-inline layui-show-xs-block">
               		  				
                                    <select name="userPost">
                                    	<c:if test="${sessionScope.post1!=null}">
                                    	<c:forEach var="post" items="${sessionScope.post1}">
                                        <option value="${post.deptName}">${post.deptName}</option>
                                        </c:forEach>
                                        </c:if>
                                    </select>
                                </div>	
               		 <!--  -->
 					<div class="layui-form-item">
                    <label for="L_repass" class="layui-form-label">
                    </label>
                    <button  class="layui-btn" id="button01" lay-filter="add" lay-submit="">
                        增加
                    </button>
                </div>

            </form>
            <!-- 右侧内容框架，更改从这里结束 -->
          </div>
        </div>
        <!-- 右侧主体结束 -->
    </div>
    <!-- 中部结束 -->
      
   <script>
    var index = parent.layer.getFrameIndex(window.name); //获取当前窗体索引
    $('#button01').on('click', function(){
    	parent.location.reload();
        parent.layer.close(index); //执行关闭
    });
    </script>
</body>
</html>